package cn.iocoder.yudao.module.promotion.controller.admin.channel.vo;

import lombok.*;

import java.math.BigDecimal;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 商城链接配置分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ChannelLinkPageReqVO extends PageParam {

    @Schema(description = "链接名称", example = "芋艿")
    private String name;

    @Schema(description = "域名")
    private String domain;

    @Schema(description = "积分")
    private Integer points;

    @Schema(description = "节省金额", example = "10380")
    private BigDecimal economizePrice;

    @Schema(description = "活动状态：0开启 1关闭", example = "2")
    private Byte status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "域名")
    private String url;

    @Schema(description = "优惠比例")
    private Integer preferentialRatio;

    @Schema(description = "查询开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "查询结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endTime;
}
